package team.you.change.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import team.you.change.pojo.Class;

public interface ClassMapper {
    int deleteByPrimaryKey(String id);

    int insert(Class record);

    Class selectByPrimaryKey(String id);
    //查询所有班级信息
    List<Class> selectAll(@Param("page") Integer page, @Param("limit") Integer limit);

    int updateByPrimaryKey(Class record);

    Integer getCount();
    //模糊查询
    List<Class> selectByLike(@Param("value") String value, @Param("college") Integer college, @Param("major") Integer major, @Param("page") Integer page, @Param("limit") Integer limit);
    //查询班级代码是否重复
    Class selectCode(String code);
    //生成课表 查询所有班级id
    List<String> selectListId();
    //查询所有班级id和代码
    List<Class> selectAllId();
}